import { request } from '@umijs/max';

export const login =async (data: { name: string; password: string }) =>
 await request('/user/login', {
    method: 'POST',
    data,
  });

export const logout =async () =>
  await request('/user/logout', {
    method: 'POST',
  });
